#ifndef SEQUENCEWORKER_H
#define SEQUENCEWORKER_H

#include <QThread>
#include "Sequence.h"

class SequenceWorker : public QThread
{
   Q_OBJECT

public:
   SequenceWorker(QObject *parent = 0);

   void quit();
   void addSequence(Sequence sequence);

signals:
   void signalSetColor(quint32 led,
                       QColor color);

protected:
   void run();

   bool isRunning;
   QList<Sequence> theSequences;
};

#endif // SEQUENCEWORKER_H
